Skip more tests if /var/tmp doesn't support extended attributes
authorSimon McVittie <smcv@debian.org>
Sun, 26 Jun 2016 13:29:31 +0000 (14:29 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 26 Jun 2016 13:29:31 +0000 (14:29 +0100)
debian/changelog
debian/patches/entry_pathname_test_helper-these-tests-need-extended-attr.patch [new file with mode: 0644]
debian/patches/series

index df5783b651dc01f0f73658adb9505510563cb5af..903f5ddea2379ef1e3d64278720b0ec06cf61def 100644 (file)
@@ -20,6 +20,8 @@ ostree (2016.6-1) UNRELEASED; urgency=medium
     d/p/tests-use-our-own-generated-libtool-not-the-one-in-PATH.patch:
     add patches to ensure that the build-time tests act on the copy
     of ostree that we just built
+  * d/p/entry_pathname_test_helper-these-tests-need-extended-attr.patch:
+    skip more tests if /var/tmp doesn't support extended attributes
 
  -- Simon McVittie <smcv@debian.org>  Wed, 15 Jun 2016 14:05:53 -0400
 
diff --git a/debian/patches/entry_pathname_test_helper-these-tests-need-extended-attr.patch b/debian/patches/entry_pathname_test_helper-these-tests-need-extended-attr.patch
new file mode 100644 (file)
index 0000000..8b38039
--- /dev/null
@@ -0,0 +1,23 @@
+From: Simon McVittie <smcv@debian.org>
+Date: Sun, 26 Jun 2016 14:26:37 +0100
+Subject: entry_pathname_test_helper: these tests need extended attributes
+
+Signed-off-by: Simon McVittie <smcv@debian.org>
+---
+ tests/test-libarchive-import.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/tests/test-libarchive-import.c b/tests/test-libarchive-import.c
+index aaa3c37..3ef379e 100644
+--- a/tests/test-libarchive-import.c
++++ b/tests/test-libarchive-import.c
+@@ -433,6 +433,9 @@ entry_pathname_test_helper (gconstpointer data, gboolean on)
+   OstreeRepoCommitModifier *modifier = NULL;
+   gboolean met_etc_file = FALSE;
++  if (skip_if_no_xattr (td))
++    goto out;
++
+   modifier = ostree_repo_commit_modifier_new (0, NULL, NULL, NULL);
+   ostree_repo_commit_modifier_set_xattr_callback (modifier, path_cb,
+                                                   NULL, &met_etc_file);
index 0adf62aef068da263518b4e75b9f9211af9d34b1..3f8a7fb51fdb9ded9d615188544309488df99e33 100644 (file)
@@ -2,3 +2,4 @@ libostree.sym-Fix-test-symbols.patch
 pull-Correctly-handle-repo-parent_repo-when-applying-stat.patch
 tests-use-our-own-generated-libtool-not-the-one-in-PATH.patch
 tests-fail-the-build-if-symlinking-tests-ostree-fails.patch
+entry_pathname_test_helper-these-tests-need-extended-attr.patch